#{extends 'main.html' /}
#{set title:'Home' /}

<div class="admin-actions">
    <ul>
        #{a @synchAlbums()}<li><span class="ui-icon ui-icon-refresh">Synch albums list</span></li>#{/a}
    </ul>
</div>

<h1>Albums</h1>
    %{ i = 1; }%
    #{list items:albums, as:'album' }
        #{picasa.album album:album /}
        %{
            if (i++ >= 4) { }%
                <div class="clear"></div>
        %{
                i = 1;
            }
        }%
    #{/list}
<div class="clear"></div>
